<template>
  <div>
    <el-result
        icon="error"
        title="404"
        sub-title="你找的页面走丢了~"
    >
      <template #extra>
<!--        $router只能在template中使用-->
        <el-button type="primary" @click="$router.push('/')">返回</el-button>
      </template>
    </el-result>
  </div>
</template>

<script>
export default {
  name: "404",
}
</script>

<style scoped>

</style>